package com.voice.core.connection;


public interface ConnectionReader {

    void onDataRead(int streamId, byte[] bytes, boolean endOfStream);

    void onStreamRead(int streamId, byte[] bytes);

    void onHeadersRead(int streamId, byte[] bytes, byte weight, boolean endOfStream);

    void onPingRead(long data);

    void onPingAckRead(long data);

    void onGoAwayRead(int streamId, int errorCode, byte[] debugData);

    void onUnknownFrame(int streamId, byte frameType, byte[] bytes);

}
